import {request} from '@umijs/max';
import * as API from "@/services";


/** 同步文章time */
export async function syncArticleTime(data: API.SyncTime): Promise<API.RespResult<boolean>> {
  return request('/api/v1/sync/article-time', {
    method: 'POST',
    data,
  });
}

/** 同步文章time */
export async function syncArticles(data: API.SyncId): Promise<API.RespResult<boolean>> {
  return request('/api/v1/sync/article-id', {
    method: 'POST',
    data,
  });
}

/** 同步期刊 */
export async function syncJournales(): Promise<API.RespResult<boolean>> {
  return request('/api/v1/sync/journal', {
    method: 'POST',
  });
}
